#include <catch2/catch.hpp>

#include "solution.hpp"

using namespace solution_003;

TEST_CASE("3. Longest Substring Without Repeating Characters", "[003]") {

CHECK(Solution().lengthOfLongestSubstring("abcabcbb") == 3);
CHECK(Solution().lengthOfLongestSubstring("bbbbb")    == 1);
CHECK(Solution().lengthOfLongestSubstring("pwwkew")   == 3);
CHECK(Solution().lengthOfLongestSubstring("")         == 0);
CHECK(Solution().lengthOfLongestSubstring("dvdf")     == 3);

}
